package channel

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameTenantChannelWavepay = "tenant_channel_wavepay"

// TenantChannelWavepay 商户通道【wavepay】
type TenantChannelWavepay struct {
	schema.Model
	Code         string  `gorm:"type:varchar(32);not null;comment:卡号"`
	Phone        string  `gorm:"type:varchar(32);not null;comment:电话"`
	CardHolder   string  `gorm:"type:varchar(20);not null;comment:持卡人"`
	MinAmount    float64 `gorm:"type:decimal(10,4);not null;comment:最小收款金额"`
	MaxAmount    float64 `gorm:"type:decimal(10,4);not null;comment:最大收款金额"`
	DailyTimes   int32   `gorm:"type:int;not null;comment:日总充值次数"`
	DailyAmount  float64 `gorm:"type:decimal(10,4);not null;comment:日总充值金额"`
	RemainTimes  int32   `gorm:"type:int;not null;comment:日总充值剩余次数"`
	RemainAmount float64 `gorm:"type:decimal(10,4);not null;comment:日总充值剩余金额"`
	VisionLevel  string  `gorm:"type:varchar(32);not null;comment:可见等级"`
	IsDisplay    int32   `gorm:"type:tinyint;not null;comment:1:显示"`
	IsLimit      int32   `gorm:"type:tinyint(10);default:2;not null;comment:日总限额开关,1on,2off"`
	Sort         int32   `gorm:"type:tinyint(10);not null;comment:排序"`
}

func (*TenantChannelWavepay) TableName() string {
	return TableNameTenantChannelWavepay
}
